#example_1
list1 = ['physics', 'chemistry', 1997, 2000];
list2 = [1, 2, 3, 4, 5, 6, 7 ];

#index start 0
print "list1[0]: ", list1[0]
print "list2[1:5]: ", list2[1:5]

#example_2 - update list value, list is muttable
list3    = ['physics', 'chemistry', 1997, 2000];

print "Value available at index 2 : "
print list3[2];
list3[2] = 2001;
print "New value available at index 2 : "
print list3[2];

#example_3 - remove list value, del or remove

#To remove a list element, you can use either the del statement if you know exactly which element(s) you 
#are deleting or the remove() method if you do not know. Following is a simple example:
list4 = ['physics', 'chemistry', 1997, 2000];
print list4;
del list4[2];
print "After deleting value at index 2 : "
print list4;
list4.remove('physics')
print list4;

#example_4 ['a', 'b', 'c', 'd', 'e', 'f']
Example_list = "abcdef"
print list(Example_list)

#example_5
import os
#HARDCODE!!!
directory = r"C:\Users\MarcinW\Desktop\Python_szkolenia\2.7.9\Inne\example_5_simply_directory"
os.listdir(directory)
#os.listdir(directory)  Return a list containing the names of the entries in the directory.
fileList = [os.path.join(directory,f) for f in os.listdir(directory)]
print fileList



